Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 8 Forum

Notes/Domino 8 Forum

Previous Next

getEnvironmentString

Hi,
I think in theorie I know what to do, but it does not function.

This is my code to read the Location variable from the Notes.ini. But I do just get an empty string. What is wrong ? THis is my code:

public void NotesMain() {

try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();

String slc = session.getEnvironmentString("Location");
if (slc == null)
System.out.println("No $Location");
else
System.out.println("loc" + slc);

} catch(Exception e) {
e.printStackTrace();
}
}


Feedback response number WEBB7J4K3Z created by ~Laura Cistumilylen on 09/02/2008

Read active location doc with scrip... (~Laura Cistumil... 2.Sep.08)
. . getEnvironmentString (~Laura Cistumil... 2.Sep.08)
. . . . solution (~Laura Cistumil... 2.Sep.08)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS